/**
 * 
 */
package com.ddf.exception;

/**
 * 定义异常消息的代码，get方法返回实际值，这个值需要在exception.properties、exception_zh_CN.properties、
 * exception_en_US中配置，请根据实际情况在对应的Locale资源文件中配置，至少配置exception.properties
 * @author DDF 2017年12月1日
 *
 */
public enum GlobalExceptionEnum {
	UNKNOW_ERROR("UNKNOW_ERROR"), 
	HAD_NO_COMMIT_INDICATION_SOCRE("HAD_NO_COMMIT_INDICATION_SOCRE"),
	PERMISSION_DENIED("PERMISSION_DENIED"), 
	CREATE_FAILURE_WITHOUT_PLAN("CREATE_FAILURE_WITHOUT_PLAN"),
	YEAR_WORK_NOT_COMPLATA("YEAR_WORK_NOT_COMPLATA"),
	DIMENSION_ASSESS_TYPE_NOT_NULL("DIMENSION_ASSESS_TYPE_NOT_NULL"),
	IS_CREATE_DETAIL_NOT_REPEAT_CREATE("IS_CREATE_DETAIL_NOT_REPET_CREATE"),
	NOT_AUDIT_CAN_NOT_CREATE_DETAIL("NOT_AUDIT_CAN_NOT_CREATE_DETAIL"),
	NOT_SET_BE_ASSESSMENT_OBJECT("NOT_SET_BE_ASSESSMENT_OBJECT"),
	NOT_SET_DIMENSION_FOR_PLAN("NOT_SET_DIMENSION_FOR_PLAN"),
	DATA_ERROR("DATA_ERROR"),
	EXIST_COMMIT_BUT_AUDIT("EXIST_COMMIT_BUT_AUDIT"),
	NO_COMMIT_DATA("NO_COMMIT_DATA"),
	NO_AUDIT_DATA("NO_AUDIT_DATA"),
	UPDATE_ERROR("UPDATE_ERROR"),
	IS_CREATE_DETAIL_CAN_NOT_DELETE("IS_CREATE_DETAIL_CAN_NOT_DELETE"),
	IS_SCORE_CAN_NOT_REPEAT_COMMIT("IS_SCORE_CAN_NOT_REPEAT_COMMIT"),
	PLAN_NAME_IS_EXIST("PLAN_NAME_IS_EXIST"),
	DIMEN_WEIGHT_NUM_MUST_BE_100_PERCENT("DIMEN_WEIGHT_NUM_MUST_BE_100_PERCENT"),
	NOT_INCLUDE_JNAME("NOT_INCLUDE_JNAME"),
	HAD_USED_FOR_PLAN("HAD_USED_FOR_PLAN"),
	ASMT_PLAN_IS_NOT_PUBLISH("ASMT_PLAN_IS_NOT_PUBLISH"),
	ASMT_PLAN_IS_NOT_COMPLATE("ASMT_PLAN_IS_NOT_COMPLATE"),
	ASMT_PLAN_HAVE_BEEN_PUBLISHED("ASMT_PLAN_HAVE_BEEN_PUBLISHED"),
	NOT_BE_ASSESSMENT_OBJECT("NOT_BE_ASSESSMENT_OBJECT"),
	NO_EXPORT_DATA("NO_EXPORT_DATA"),
	MUST_BE_COMPLETE_OR_PUBLISH("MUST_BE_COMPLETE_OR_PUBLISH")
	;
	
	
	private String code;
	
	GlobalExceptionEnum (String code) {
		this.code = code;
	}
	
	public String get() {
		return this.code;
	}
}
